package com.xaicode.auth.entity;

import com.xaicode.auth.base.BaseEntity;
import com.xaicode.auth.constant.EnableEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 字典详情
 * <p>
 * 同一字典下的标签不可重复，不同字典下的标签可重复
 * 
 * @date 2024/12/6
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict_detail")
public class SysDictDetail extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 字典ID
     */
    private Integer pid;

    /**
     * 字典Key
     *
     * @see SysDict#getDictKey()
     */
    private String dictKey;

    /**
     * 字典标签
     */
    private String dictLabel;

    /**
     * 字典值
     */
    private String dictValue;

    /**
     * 状态
     *
     * @see EnableEnum#ENABLE
     * @see EnableEnum#DISABLE
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sortNum;

    /**
     * 备注
     */
    private String remark;

}